<!DOCTYPE html>
<html lang='zh-CN'>
<link href="https://assets.gitee.com/assets/projects/application-e1f640e791e660016444044fbd36fca5.css" media="screen" rel="stylesheet" type="text/css" />
<head>
<meta charset='utf-8'>
<meta content='IE=edge' http-equiv='X-UA-Compatible'>
<meta content='码云,代码托管,git,Git@OSC,gitee.com,开源,项目管理,版本控制,开源代码,代码分享,项目协作,开源项目托管,免费代码托管,Git代码托管,Git托管服务' name='Keywords'>
<meta content='这是我的学习项目' name='Description'>
<title>
下载仓库 · Paul/博学谷 - 码云 Gitee.com
</title>
<link href="https://assets.gitee.com/assets/favicon-950947d692935bf7e0b1629a69cd89ed.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<meta content='gitee.com/longpo1988/boxuegu git https://gitee.com/longpo1988/boxuegu.git' name='go-import'>
<link href="https://assets.gitee.com/assets/application-8045b6a54b3029e348d2ef693efc3411.css" media="screen" rel="stylesheet" type="text/css" />
<script src="https://assets.gitee.com/assets/application-5e3aa27f49a3e646d2c107a767499095.js" type="text/javascript"></script>
<script src="https://assets.gitee.com/assets/lib/jquery.timeago.zh-CN-bcd91c2c27a815fa9a395595874b592b.js" type="text/javascript"></script>

<meta content="authenticity_token" name="csrf-param" />
<meta content="tvBG1MIG/duW4pWniYa5tVh8559hPhrMt1HlbV36vNg=" name="csrf-token" />
<script type="text/javascript">
//<![CDATA[
window.gon = {};gon.locale="zh-CN";gon.http_clone="https://gitee.com/longpo1988/boxuegu.git";gon.user_project="longpo1988/boxuegu";gon.manage_branch="\u7ba1\u7406\u5206\u652f";gon.manage_tag="\u7ba1\u7406\u6807\u7b7e";gon.enterprise_id=0;
//]]>
</script>
<script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js" type="text/javascript"></script>
<script>
  var title = document.title.replace(/( - Gitee| - 码云)$/, ''),
    imgUrl = '',
    imgUrlEl = document.querySelector('meta[itemprop=image]')
  if (imgUrlEl) {
    imgUrl = imgUrlEl.getAttribute('content')
  } else {
    imgUrl = "https://gitee.com//logo_4wechat.png"
  }
  wx.config({
    debug: false,
    appId: "wxff219d611a159737",
    timestamp: "1523863071",
    nonceStr: "cc47d681b2dc060af6295dba5035cbbb",
    signature: "694211870c4bbf7e94f7b93139d27f1c050b5fcd",
    jsApiList: [
      'onMenuShareTimeline',
      'onMenuShareAppMessage'
    ]
  });
  wx.ready(function () {
    wx.onMenuShareTimeline({
      title: title, // 分享标题
      link: "https://gitee.com/longpo1988/boxuegu/repository/archive/master.zip", // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
      imgUrl: imgUrl // 分享图标
    });
    wx.onMenuShareAppMessage({
      title: title, // 分享标题
      link: "https://gitee.com/longpo1988/boxuegu/repository/archive/master.zip", // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
      desc: document.querySelector('meta[name=Description]').getAttribute('content'),
      imgUrl: imgUrl // 分享图标
    });
  });
  wx.error(function(res){
    console.error('err', res)
  });
</script>

<script type='text/x-mathjax-config'>
MathJax.Hub.Config({
  tex2jax: {
    inlineMath: [['$','$'], ['\\(','\\)']],
    displayMath: [["$$","$$"],["\\[","\\]"]],
    processEscapes: true,
    skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
    ignoreClass: "container|files",
    processClass: "markdown-body"
  }
});
</script>
<script src="https://gitee.com/uploads/resources/MathJax-2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

<!--[if lt IE 10]>
<script>
    window.location.href = "/incompatible.html";
</script>
<![endif]-->
</head>

<body class='git-project lang-zh-CN'>
<script src="https://assets.gitee.com/assets/projects/app-d0240762f835a29b6e110c4ecae811bd.js" type="text/javascript"></script>
<header class='common-header fixed noborder' id='git-header-nav'>
<div class='ui container'>
<div class='ui menu'>
<div class='item gitosc-logo'>
<a href="/"><img class='ui inline image' height='28' src='/logo.svg?20171024' width='95'>
</a></div>
<a href="/explore" class="item " title="开源软件">开源软件
</a><a href="/enterprises" class="item " title="企业版">企业版
<sup class='ui red label'>
特惠
</sup>
</a><a href="https://blog.gitee.com/" class="item" id="gitee-blog" target="_blank" title="博客">博客
</a><div class='dropdown item loading ui' id='my-gitee-dropdown'>
<a href="/lsh12980/events">我的码云</a>
<i class='dropdown icon'></i>
<div class='menu'>
<div class='header user-enterprises'>
<a href="/lsh12980/enterprises" class="pull-right" target="_blank">全部</a>
企业
<span class='count'></span>
</div>
<div class='disabled item tip user-enterprises'>
无企业
</div>
<div class='header user-groups'>
<a href="/lsh12980/groups" class="pull-right" target="_blank">全部</a>
组织
<span class='count'></span>
</div>
<div class='disabled item tip user-groups'>
无组织
</div>
<div class='header user-projects'>
<a href="/lsh12980/projects" class="pull-right" target="_blank">全部</a>
项目
<span class='count'></span>
</div>
<div class='disabled item tip user-projects'>
无项目
</div>
</div>
</div>
<div class='right menu userbar' id='git-nav-user-bar'>
<div class='item'>
<form accept-charset="UTF-8" action="/search" autocomplete="on" data-text-filter="搜索格式不正确" data-text-require="搜索关键字不能少于1个" id="navbar-search-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
<div class='ui mini fluid input'>
<input id="navbar-search-input" name="search" placeholder="搜索项目、代码片段..." type="text" value="" />
<input id="group_id" name="group_id" type="hidden" />
<input id="project_id" name="project_id" type="hidden" value="3337109" />
<input id="navbar-search-type" name="type" type="hidden" />
</div>
</form>


</div>
<div class='item ui dropdown empty' data-count-path='/notifications/unread_count' data-mark-notice-path='/notifications/mark' id='notice-dropdown'>
<a href="/notifications" class="remind-button"><i class='iconfont icon-remind'></i>
<div class='notice-count total'></div>
</a><div class='notice-dropdown-panel menu'>
<div class='notice-dropdown-panel-header'>
<div class='tab active' data-data-path='/notifications/notices?scope=referer' data-html-path='/notifications/referer' data-scope='referer'>
<div class='content'>
@ 我
<div class='notice-count referer'></div>
</div>
</div>
<div class='tab' data-data-path='/notifications/notices?scope=infos' data-html-path='/notifications/infos' data-scope='infos'>
<div class='content'>
通知
<div class='notice-count infos'></div>
</div>
</div>
<div class='tab' data-data-path='/notifications/notices?scope=messages' data-html-path='/notifications/messages' data-scope='messages'>
<div class='content'>
私信
<div class='notice-count messages'></div>
</div>
</div>
</div>
<div class='item notice-dropdown-panel-container'>
<div class='ui dimmer over active'>
<div class='ui loader'></div>
</div>
<div class='notice-list'></div>
<div class='notice-dropdown-panel-blank'>
暂没有新消息
</div>
</div>
<div class='notice-dropdown-panel-footer'>
<div class='action'>
<div class='side left'>
<a href="javascript: void(0);" class="mark-notices">全部标记为已读
</a></div>
<div class='side right'>
<a href="javascript: void(0);" class="load-all" target="_blank">查看全部
</a></div>
</div>
</div>
</div>
</div>

<div class='ui dropdown link item' id='git-nav-create'>
<i class='iconfont icon-add-circle'></i>
<div class='right menu'>
<a href="/projects/new" class="item"><i class='add square icon'></i>
新建项目
</a><a href="/lsh12980/codes/new" class="item"><i class='code icon'></i>
发布代码片段
</a><a href="/organizations/new" class="item"><i class='group icon'></i>
创建组织
</a><a href="/create_enterprise" class="item"><i class='icon iconfont icon-enterprise'></i>
开通企业版
</a><a href="/projects/oauth_github" class="item"><i class='github icon'></i>
从 GitHub 导入项目
</a><a href="/projects/csdn_code" class="item"><i class='iconfont icon-logo_csdn icon'></i>
CODE 一键迁移
</a></div>
</div>
<div class='ui dropdown item' id='git-nav-user'>
<a href="/lsh12980/events"><img avatar="liushihao" class="ui avatar image lsh12980-avatar" />
</a><i class='dropdown icon'></i>
<div class='right menu'>
<a href="/lsh12980/events" class="item"><div class='mayun-icon my-ic-user-home my-ic-user-home-dims'></div>
个人主页
</a><a href="/profile" class="item"><div class='mayun-icon my-ic-edit my-ic-edit-dims'></div>
设置
</a><div class='divider'></div>
<a href="/gists" class="item"><div class='iconfont icon-snippet2'></div>
代码片段
</a><a href="http://git.mydoc.io/" class="item" target="_blank"><div class='mayun-icon my-ic-help my-ic-help-dims'></div>
帮助
</a><div class='divider'></div>
<a href="/logout" class="item destroy-user-session" data-method="delete" rel="nofollow"><div class='mayun-icon my-ic-exit my-ic-exit-dims'></div>
退出
</a></div>
</div>
<script>
  $('.destroy-user-session').click(function() {
    $.cookie('access_token', null, { path: '/' });
  })
</script>

</div>
</div>
</div>
</header>
<script>
  Gitee.initNavbar()
  Gitee.initRepoRemoteWay()
</script>

<!--[if lt IE 10]>
<script>
  window.location.href = "/incompatible.html"
</script>
<![endif]-->

<div class='fixed-notice-messages'>
<div class='ui container'>
<div class='flash-messages' id='messages-container'></div>
</div>
</div>
<script>
  (function() {
    $(function() {
      var $error_box, alertTip, notify_content, notify_options, setCookie, template;
  
      template = '<div data-notify="container" class="ui {0} message" role="alert">' + '<i data-notify="dismiss" class="close icon"></i>' + '<span data-notify="message">{2}</span>' + '</div>';
      notify_content = {
        "message": "\u9a8c\u8bc1\u4fe1\u606f\u8fc7\u671f\uff0c\u8bf7\u91cd\u65b0\u70b9\u51fb\u4e0b\u8f7d"
      };
      notify_options = {
        "type": "error"
      };
      alertTip = '';
      $error_box = $(".flash_error.flash_error_box");
      if (notify_options.type === 'error' && $error_box.length > 0 && !$.isEmptyObject(notify_content.message)) {
        if (notify_content.message === 'captcha_fail') {
          alertTip = "验证码不正确";
        } else if (notify_content.message === 'not_found_in_database') {
          alertTip = "帐号或者密码错误";
        } else if (notify_content.message === 'not_found_and_show_captcha') {
          alertTip = "帐号或者密码错误";
        } else {
          alertTip = notify_content.message;
        }
        $error_box.html(alertTip).show();
      } else if (notify_content) {
        notify_options.delay = 3000;
        notify_options.template = template;
        notify_options.offset = {
          x: 10,
          y: 30
        };
        notify_options.element = '#messages-container';
        $.notify(notify_content, notify_options);
      }
      setCookie = function(name, value) {
        $.cookie(name, value, {
          path: '/',
          expires: 365
        });
      };
      return $('#remove-bulletin').on('click', function() {
        setCookie('remove_bulletin', "gitee-maintain-1516115940");
        $('#git-bulletin').hide();
      });
    });
  
  }).call(this);
</script>

<div class='git-project-header'>
<div class='fixed-notice-messages'>
<div class='ui info icon floating message green' id='fetch-ok' style='display: none'>
<div class='content'>
<div class='header status-title'>
<i class='info icon status-icon'></i>
代码拉取完成，页面将自动刷新
</div>
</div>
</div>
<div class='ui info icon floating message error' id='fetch-error' style='display: none'>
<div class='content'>
<div class='header status-title'>
<i class='info icon status-icon'></i>
<span class='error_msg'></span>
</div>
</div>
</div>
</div>
<div class='ui container'>

<div class='git-project-header-details'>
<div class='git-project-header-actions'>
<span class='ui basic buttons'>
<a class='ui button donate' id='project-donate' title='捐赠'>
<i class='iconfont icon-donation'></i>
捐赠
</a>
<a class='ui button social-count' href='/longpo1988/boxuegu#project-donate-overview'>0</a>
<div class='ui small modal project-donate-modal' id='project-donate-modal'>
<div class='content'>
项目的主人没有开启捐赠功能，快通知他让他开启吧！
<a id='send-message-to-author'>
&ensp;&ensp;
发送私信 &gt;&gt;
</a>
</div>
<div class='actions' id='modal-act'>
<div class='message'>
</div>
<div class='buttons'>
<div class='ui green cancel button'>
关闭
</div>
</div>
</div>
</div>
<div class='ui small modal wepay-qrcode'>
<div class='header'>
扫描微信二维码支付
<span class='wepay-cash'></span>
</div>
<div class='content weqcode-center'>
<img id='wepay-qrcode' src=''>
</div>
<div class='actions'>
<div class='ui negative button'>取消</div>
<div class='ui button positive right'>
支付完成
</div>
</div>
</div>
</span>

<span class='basic buttons ui watch-container'>
<a href="/longpo1988/boxuegu/unwatch" class="ui button unwatch" data-method="post" data-remote="true" rel="nofollow"><i class='iconfont icon-watch'></i>
Unwatch
</a><a href="/longpo1988/boxuegu/watch" class="ui button watch" data-method="post" data-remote="true" rel="nofollow"><i class='iconfont icon-watch'></i>
Watch
</a><a href="/longpo1988/boxuegu/watchers" class="ui button social-count" title="1">1
</a></span>
<span class='basic buttons star-container ui'>
<a href="/longpo1988/boxuegu/unstar" class="ui button unstar" data-method="post" data-remote="true" rel="nofollow"><i class='iconfont icon-star'></i>
Unstar
</a><a href="/longpo1988/boxuegu/star" class="ui button star" data-method="post" data-remote="true" rel="nofollow"><i class='iconfont icon-star'></i>
Star
</a><a href="/longpo1988/boxuegu/stargazers" class="ui button social-count" title="1">1
</a></span>
<span class='ui basic buttons fork-container' data-content=''>
<a href="#" class="ui button fork " id="fork-top-button"><i class='iconfont icon-fork'></i>
Fork
</a><a href="/longpo1988/boxuegu/members" class="ui button social-count" title="4">4
</a></span>
</div>
<h2 class='git-project-title'>
<span class="project-title"><i class="iconfont icon-project-public" title="这是一个公开项目"></i> <a href="/longpo1988" class="author" title="Paul">Paul</a> / <a href="/longpo1988/boxuegu" class="repository" style="padding-bottom: 0px" target="" title="博学谷">博学谷</a></span><span class="project-badges"><a href="/explore/recommend?lang=Android" class="ui small label" id="project-language" target="_blank" title="Language">Android</a></span>

<input id="project_title" name="project_title" type="hidden" value="Paul/博学谷" />
</h2>
</div>
</div>
<div class='row' id='import-result-message' style='padding-top: 0px; display: none'>
<div class='sixteen wide column'>
<div class='ui icon yellow message status-color'>
<i class='info icon status-icon' style='width:60px;padding-right:12px;'></i>
<i class='close icon'></i>
<div class='header status-title'>
同步状态
</div>
<span class='status-message'></span>
</div>
</div>
</div>
<div class='ui small modal' id='modal-fork-project'>
<div class='close-button'>
<i class='icon-close iconfont'></i>
</div>
<div class='header left aligned'>
Fork 项目
</div>
<div class='content'>
<div class='fork-info-content'>
<div class='ui segment fork_project_loader'>
<div class='ui active inverted dimmer'>
<div class='ui text loader'>加载中</div>
</div>
</div>
</div>
</div>
<div class='actions fork-action hide'>
<a class='cancel'>&emsp;取消&emsp;</a>
<div class='ui large button orange ok'>&emsp;确认&emsp;</div>
</div>
</div>
<script>
  (function() {
    var $modalFork;
  
    this.title_project_path = 'boxuegu';
  
    this.title_fork_url = '/longpo1988/boxuegu/sync_fork';
  
    $modalFork = $('#modal-fork-project');
  
    $('#fork-top-button').on('click', function(e) {
      e.preventDefault();
      $modalFork.modal('show');
      return setTimeout(function() {
        return $.ajax({
          url: "/longpo1988/boxuegu/fork_project_info"
        });
      }, 500);
    });
  
    $('#modal-fork-project .close-button').on('click', function(e) {
      return $modalFork.modal('hide');
    });
  
  }).call(this);
</script>
<script>
  (function() {
    $('#modal-fork-project').modal({
      transition: 'fade'
    });
  
  }).call(this);
</script>
<style>
  i.loading {
    -webkit-animation: icon-loading 1.2s linear infinite;
    animation: icon-loading 1.2s linear infinite;
  }
  .qrcode_cs{
    float: left;
  }
</style>

<div class='git-project-nav'>
<div class='ui container'>
<div class='ui secondary pointing menu'>
<a href="/longpo1988/boxuegu" class="item "><i class='iconfont icon-code'></i>
代码
</a><a href="/longpo1988/boxuegu/issues" class="item "><i class='iconfont icon-issue'></i>
Issues
<span class='ui mini circular label'>
0
</span>
</a><a href="/longpo1988/boxuegu/pulls" class="item "><i class='iconfont icon-pull-request'></i>
Pull Requests
<span class='ui mini circular label'>
0
</span>
</a><a href="/longpo1988/boxuegu/attach_files" class="item "><i class='iconfont icon-annex'></i>
附件
<span class='ui mini circular label'>0</span>
</a><a href="/longpo1988/boxuegu/wikis" class="item "><i class='iconfont icon-wiki'></i>
Wiki
<span class='ui mini circular label'>
0
</span>
</a><div class='item'>
<div class='ui dropdown git-project-service'>
<div class='text'>
<i class='iconfont icon-service'></i>
服务
</div>
<i class='dropdown icon'></i>
<div class='menu'>
<a href="/longpo1988/boxuegu/paas/huaweicloud" class="item">华为容器云
</a><a href="/longpo1988/boxuegu/paas/select_platform" class="item">代码演示
</a><a href="/longpo1988/boxuegu/quality_analyses/confirm_platform" class="item">质量分析
</a><a href="/longpo1988/boxuegu/pages" class="item">Pages
</a></div>
</div>
</div>
</div>
</div>
</div>
<script>
  $('.git-project-nav .ui.dropdown').dropdown({ action: 'nothing' });
</script>
<style>
  .git-project-nav i.checkmark.icon {
    color: green;
  }
</style>
<script>
  $('#git-versions.dropdown').dropdown();
  $.ajax({
    url:"/longpo1988/boxuegu/access/add_access_log",
    type:"GET"
  });
</script>

</div>
<div class='ui grid page segment center aligned' id='archive'>
<div class='column'>
<input id="ref" name="ref" type="hidden" value="master" />
<div class='ui form'>
<div class='inline field'>
* 为了避免盗链导致资源占用，下载前请输入验证码。
</div>
<div class='inline field'>
<div class='ui label captcha'>
<img alt="captcha" class="captcha_img" height="40" src="https://gitee.com/captcha?action=captcha&amp;i=1523863071" width="140" />
</div>
<input id="captcha" name="captcha" placeholder="验证码" type="text" value="" />
<div class='ui button orange download-submit'>
下载
</div>
</div>
<div class='inline field ajax_result'></div>
</div>
</div>
</div>
<style>
  .captcha {
    padding: 4px !important;
    margin-right: 10px !important;
  }
  .captcha_img {
    height: 28px;
    width: 125px;
    vertical-align: middle;
  }
  #captcha {
    margin-right: 10px !important;
    height: 36px;
  }
  #archive .ui.form {
    padding: 25px;
  }
  .inline.field .download-submit {
    line-height: 1.5;
  }
</style>
<script>
  var timeName = '';
  $(document).ready(function(){
    var $captcha_img = $('.captcha_img');
    $captcha_img.trigger('click');
  
    $('.download-submit').click(function() {
      var ref = $('#ref').val();
      var $captcha = $('#captcha');
      var captcha = $captcha.val();
      var $ajax_result = $('.ajax_result');
      $ajax_result.html('');
      $.post("/longpo1988/boxuegu/repository/download", {ref: ref, captcha: captcha},
        function(data) {
          if(data['code'] === 200) {
            // 跳转到下载地址
            var url = window.location.href + '?ref=' + ref + '&archive_path=' + data['msg'];
            $ajax_result.html("<i>后台正在为您打包，请耐心稍等。(提示: 打包时长与仓库大小有关)</i>");
            window.location.href = url;
          } else if(data['code'] === 201) {
            // 定时检查打包状态
            timeName = setInterval("check()", 3000);
            $ajax_result.html("<i>后台正在为您打包，请耐心稍等。(提示: 打包时长与仓库大小有关)</i>");
          } else if(data['code'] === 401) {
            $ajax_result.html('<span style="color: red">' + data['msg'] + '</span>');
            return false;
          }
          $captcha.val('');
          $captcha_img.trigger('click');
        })
    })
  });
  
  function check() {
    var ref = $('#ref').val();
    $.get("/longpo1988/boxuegu/repository/check_archive", {ref: ref}).done(function(data) {
      if(data['code'] === 200) {
        var url = window.location.href + '?ref=' + ref + '&archive_path=' + data['msg'];
        window.location.href = url;
        $('.ajax_result').html('');
        clearInterval(timeName);
      } else if (data['code'] === 401) {
        $('.ajax_result').html($data['msg']);
        clearInterval(timeName);
      }
    });
  }
  
  $('#captcha').on('keydown', function(e) {
    if (e.keyCode == 13) {
      $('.download-submit').trigger('click');
    }
  })
</script>

<script>
  (function() {
    var donateModal;
  
    Gitee.modalHelper = new GiteeModalHelper({
      alertText: '提示',
      okText: '确定'
    });
  
    donateModal = new ProjectDonateModal({
      el: '#project-donate-modal',
      alipayUrl: '/longpo1988/boxuegu/alipay',
      wepayUrl: '/longpo1988/boxuegu/wepay',
      modalHelper: Gitee.modalHelper
    });
  
    if ("" === 'true') {
      donateModal.show();
    }
  
    $('#project-donate').on('click', function() {
      return donateModal.show();
    });
  
    $('#send-message-to-author').on('click', function() {
      donateModal.hide();
      return $('#project-user-message').trigger('click');
    });
  
  }).call(this);
</script>
<script>
  Tree.initHighlightTheme('white')
</script>

<script>
  $(function() {
    GitLab.GfmAutoComplete.dataSource = "/longpo1988/boxuegu/autocomplete_sources"
    GitLab.GfmAutoComplete.Emoji.assetBase = 'https://assets.gitee.com/assets/emoji'
    GitLab.GfmAutoComplete.setup();
  });
</script>

<footer id='git-footer-main'>
<div class='ui container'>
<div class='ui two column grid'>
<div class='column'>
<p><a href="https://gitee.com/" target="_blank">© Gitee.com  </a></p>
<div class='ui three column grid' id='footer-left'>
<div class='column'>
<div class='ui link list'>
<div class='item'>
<a href="/about_us" class="item">关于我们</a>
</div>
<div class='item'>
<a href="/terms" class="item">使用条款</a>
</div>
<div class='item'>
<a href="http://git.mydoc.io" class="item">帮助文档</a>
</div>
</div>
</div>
<div class='column'>
<div class='ui link list'>
<div class='item'>
<a href="/api/v5/swagger" class="item">OpenAPI</a>
</div>
<div class='item'>
<a href="https://gitee.com/gitee-stars/" class="item">码云封面人物</a>
</div>
<div class='item'>
<a href="/appclient" class="item">APP与插件下载</a>
</div>
</div>
</div>
<div class='column'>
<div class='ui link list'>
<div class='item'>
<a href="/links.html" class="item">合作伙伴</a>
</div>
<div class='item'>
<a href="https://gitee.com/git-osc/" class="item">更新日志</a>
</div>
<div class='item'>
<a href="/oschina/git-osc/issues/new" class="item">意见与建议</a>
</div>
<div class='item'>
<a href="/gists" class="item">代码片段</a>
</div>
</div>
</div>
</div>
</div>
<div class='column right aligned followus'>
<div class='qrcode weixin'>
<p class='weixin-text'><span class="translation_missing" title="translation missing: zh-CN.layouts.bottom.weixin">Weixin</span></p>
<img alt="Qrcode-weixin" src="https://assets.gitee.com/assets/qrcode-weixin-8ab7378f5545710bdb3ad5c9d17fedfe.jpg" />
</div>
<div class='phone-and-qq column'>
<div class='ui list'>
<div class='item'>
400-898-2008 转2
</div>
<div class='item' id='git-footer-email'>
git#oschina.cn
</div>
<div class='item qq-and-weibo'>
<a href="//shang.qq.com/wpa/qunwpa?idkey=0d6c2fc0b5b71ac33405dd575bb490bf1a50e3c9a9f694e8a689cb59ee7dacc3" class="icon-popup" title="点击加入码云官方三群"><i class='iconfont icon-logo-qq'></i>
<span>三群：655903986</span>
</a><a href="http://weibo.com/mayunOSC" class="icon-popup" target="_blank" title="关注码云微博"><i class='iconfont icon-logo-weibo'></i>
<span>码云Gitee</span>
</a></div>
</div>
</div>
</div>
</div>
</div>
<div class='bottombar'>
<div class='ui container'>
<div class='ui grid'>
<div class='five wide column partner'>
本站带宽由 <a href="https://www.anchnet.com/" target="_blank" title="anchnet"><img alt="51idc" src="/51idc.png" /></a> 提供
</div>
<div class='eleven wide column right aligned'>
<div class='copyright'>
<a href="http://www.miitbeian.gov.cn/">粤ICP备12009483号-8</a>
深圳市奥思网络科技有限公司版权所有
</div>
<i class='icon world'></i>
<a href="/language/zh-CN">简 体
</a>/
<a href="/language/zh-TW">繁 體
</a>/
<a href="/language/en">English
</a></div>
</div>
</div>
</div>
</footer>
<script>
  Gitee.initFooter()
  $('.icon-popup').popup({ position: 'bottom center' });
</script>
<div class='side-toolbar'>
<div class='button share-link'>
<i class='iconfont icon-share'></i>
</div>
<div class='ui popup'>
<div class='header'>
分享到
</div>
<div class='bdsharebuttonbox'>
<a class='item bds_weixin' data-cmd='weixin' title='分享到微信'>weixin</a>
<a class='item bds_tsina' data-cmd='tsina' title='分享到新浪微博'>sina</a>
<a class='item bds_sqq' data-cmd='sqq' title='分享到QQ好友'>qq</a>
<a class='item bds_qzone' data-cmd='qzone' title='分享到QQ空间'>qzone</a>
</div>
</div>
<div class='popup button' data-content='给项目拥有者发送私信' id='project-user-message'>
<i class='iconfont icon-message'></i>
</div>
<div class='popup button' data-content='评论' id='home-comment'>
<i class='iconfont icon-comment'></i>
</div>
<div class='button gotop popup' data-content='回到顶部' id='gotop'>
<i class='iconfont icon-top'></i>
</div>
</div>
<div class='ui modal form' id='send-message-modal'>
<div class='header'>发送私信</div>
<div class='content'>
<div class='ui message hide'></div>
<div class='field'>
<textarea class='content-input' maxlength='255' placeholder='请在这里输入内容'></textarea>
</div>
</div>
<div class='actions'>
<div class='ui orange icon button disabled ok'>发送</div>
<div class='ui button basic cancel'>取消</div>
</div>
</div>
<script>
  var $mountedElem = $('#project-user-message'),
      $messageModal = $('#send-message-modal'),
      $modalTips = $messageModal.find('.message'),
      $contentInput = $messageModal.find('.content-input'),
      $captchaImage = $messageModal.find('.captcha_img'),
      $captchaInput = $messageModal.find('.captcha-field input'),
      $sendMessageBtn = $messageModal.find('.ok.button'),
      messageSending = false
  
  $mountedElem.on('click', function() {
    $captchaImage.trigger('click')
    $messageModal.modal('show')
  })
  
  $messageModal.modal({
    onApprove: function() {
      sendMessage()
      return false
    },
    onHidden: function() {
      $modalTips.hide()
    }
  })
  
  $captchaImage.on('click', function() {
    $captchaInput.val('')
  })
  
  $contentInput.on('change keydown', function(e) {
    var content = $(this).val()
    if ($.trim(content).length == 0) {
      $sendMessageBtn.addClass('disabled')
      return
    }
    $sendMessageBtn.removeClass('disabled')
    if ((e.ctrlKey || e.metaKey) && e.keyCode == 13) {
      $sendMessageBtn.trigger('click')
    }
  })
  
  function sendMessage() {
    if (messageSending) return
    $.ajax({
      url: '/notifications/messages',
      data: {
        content: $contentInput.val(),
        receiver_id: '98013',
        receiver_username: '',
        captcha: $captchaInput.val()
      },
      type: 'POST',
      dataType: 'JSON',
      beforeSend: function() {
        setSendStatus(true)
      },
      success: function(res) {
        if (res.status != 200) {
          showTips(res.message || '可能由于网络原因，留言发送失败，请稍后再试', 'error')
        } else {
          $contentInput.val('')
          showTips('私信发送成功')
          setTimeout(function() { $messageModal.modal('hide') }, 500)
        }
        setSendStatus(false)
      },
      error: function(err) {
        showTips('可能由于网络原因，留言发送失败，请稍后再试', 'error')
        setSendStatus(false)
      }
    })
  }
  
  function showTips(text, type) {
    $modalTips.text(text).show()
    if (type == 'error') {
      $modalTips.removeClass('success').addClass('error')
    } else {
      $modalTips.removeClass('error').addClass('success')
    }
  }
  
  function setSendStatus(value) {
    messageSending = value
    if (messageSending) {
      $sendMessageBtn.addClass('loading')
      $contentInput.attr('readonly', true)
    } else {
      $sendMessageBtn.removeClass('loading')
      $contentInput.attr('readonly', false)
    }
  }
</script>

<script>
  (function() {
    $('#project-user-message').popup({
      position: 'left center'
    });
  
  }).call(this);
</script>
<script>
  Gitee.initSideToolbar({
    hasComment: true,
    commentUrl: '/longpo1988/boxuegu#project_comm_title'
  })
</script>
<script>
  window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"分享到新浪微博","bdMini":"1","bdMiniList":["bdxc","tqf","douban","bdhome","sqq","thx","ibaidu","meilishuo","mogujie","diandian","huaban","duitang","hx","fx","youdao","sdo","qingbiji","people","xinhua","mail","isohu","yaolan","wealink","ty","iguba","fbook","twi","linkedin","h163","evernotecn","copy","print"],"bdPic":"","bdStyle":"1","bdSize":"32"},"share":{}};
</script>
<script src="/bd_share/static/api/js/share.js" type="text/javascript"></script>


<style>
  .float-left-box{display:none;position:fixed;left:0;bottom:0;z-index:99}.float-left-box .close-left{position:absolute;top:20px;left:25px;cursor:pointer}.float-left-box .float-people{width:200px;padding:10px}
</style>
<div class='float-left-box'>
<a href='/gitee-stars/8' target='_blank'>
<img alt="8_float_left_people" class="float-people" src="https://assets.gitee.com/assets/gitee_stars/8_float_left_people-7fe98d40d7e8e865b9daf0910630d7e8.png" />
<img alt="8_float_left_close" class="close-left" src="https://assets.gitee.com/assets/gitee_stars/8_float_left_close-d94fcd666b835df721ff11f43c481498.png" />
</a>
</div>
<script>
  var giteeStarsWidget = $('.float-left-box')
  if ($.cookie('visit-gitee-8') == 1) {
    giteeStarsWidget.hide()
  } else {
    giteeStarsWidget.show()
  }
  $('.close-left').on('click', function(e) {
    e.preventDefault()
    $.cookie('visit-gitee-8', 1, { path: '/', expires: 30})
    giteeStarsWidget.hide()
  })
</script>

<script>
  (function() {
    this.__gac = {
      domain: 'www.oschina.net'
    };
  
  }).call(this);
</script>
<script defer src='//www.oschina.net/public/javascripts/cjl/ga.js?t=20160926' type='text/javascript'></script>

</body>
</html>
